#pragma once
class FuncAddDxfInOut
{
public:
	FuncAddDxfInOut(void);
	~FuncAddDxfInOut(void);
	void FindFuncDxfInPos();
	void FindFuncDxfOutPos();
	BOOL FindDxfInInsertPos(int& ipos);
	BOOL FindDxfOutInsertPos(int& ipos);
	BOOL GetMaxDxfStringByType(CString csType,CString& dxfstr,BOOL bFindDxfIn);
	void GetRbDataToVarString(CString csType,CString csName,CStringArray& csCodes);
	void main();
	void WriteDxfInCode(int idPos,CStringArray& csCodes);
	BOOL GetNewDxfStringByString(CString csDxf,CString& dxfstr,BOOL bFindDxfIn);
	void FindMaxDxfInCodeByString(CString csDxf,int& idmax);
	void FindMaxDxfOutCodeByString(CString csDxf,int& idmax);
	CString m_csSourceFileFullName;
	CStringArray m_csReadlines;

	int m_idFuncDxfInStart,m_idFuncDxfInEnd;
	int m_idFuncDxfOutStart,m_idFuncDxfOutEnd;
};
